import { t } from '@/utils'

export const minesOptions = [
	{
		label: '3',
		value: 3
	},
	{
		label: '4',
		value: 4
	},
	{
		label: '5',
		value: 5
	},
	{
		label: '6',
		value: 6
	},
	{
		label: '7',
		value: 7
	},
	{
		label: '8',
		value: 8
	},
	{
		label: '9',
		value: 9
	},
	{
		label: '10',
		value: 10
	},
	{
		label: '11',
		value: 11
	},
	{
		label: '12',
		value: 12
	},
	{
		label: '13',
		value: 13
	},
	{
		label: '14',
		value: 14
	},
	{
		label: '15',
		value: 15
	},
	{
		label: '16',
		value: 16
	},
	{
		label: '17',
		value: 17
	},
	{
		label: '18',
		value: 18
	},
	{
		label: '19',
		value: 19
	},
	{
		label: '20',
		value: 20
	}
]

export const riskTextMap: any = () => ({
	LOW_RISK: t('miniGames.low'),
	MEDIUM_RISK: t('miniGames.middle'),
	HIGH_RISK: t('miniGames.high')
})

export const kenoRiskTextMap: any = () => ({
	CLASSIC: t('miniGames.classic'),
	LOW_RISK: t('miniGames.low'),
	MEDIUM_RISK: t('miniGames.middle'),
	HIGH_RISK: t('miniGames.high')
})

// plinko给定的字符串
export const pinkoConfigString = `[
	{ "rows": 8,
			"payout": {
					"LOW_RISK": [5.6, 2.1, 1.1, 1 ,0.5, 1, 1.1, 2.1, 5.6],
					"MEDIUM_RISK": [13, 3, 1.3 , 0.7, 0.4, 0.7, 1.3, 3, 13],
					"HIGH_RISK": [29, 4, 1.5, 0.3, 0.2, 0.3, 1.5, 4, 29]
			}
	},

	{ "rows": 9,
			"payout": {
					"LOW_RISK": [5.6, 2, 1.6, 1 ,0.7, 0.7, 1, 1.6, 2, 5.6],
					"MEDIUM_RISK": [19, 4, 1.7, 0.9 ,0.5, 0.5, 0.9, 1.7, 4, 19],
					"HIGH_RISK": [43, 7, 2, 0.6 ,0.2, 0.2, 0.6, 2, 7, 43]
			}
	},

	{ "rows": 10,
			"payout": {
					"LOW_RISK": [8.9, 3, 1.4, 1.1, 1, 0.5, 1, 1.1, 1.4, 3, 8.9],
					"MEDIUM_RISK": [22, 5, 2, 1.4 ,0.6, 0.4, 0.6, 1.4, 2, 5, 22],
					"HIGH_RISK": [76, 10, 3, 0.9 ,0.3, 0.2, 0.3, 0.9, 3, 10, 76]
			}
	},

	{ "rows": 11,
			"payout": {
					"LOW_RISK": [8.4, 3, 1.9, 1.3, 1, 0.7, 0.7, 1, 1.3, 1.9, 3, 8.4],
					"MEDIUM_RISK": [24, 6, 3, 1.8, 0.7, 0.5, 0.5, 0.7, 1.8, 3, 6, 24],
					"HIGH_RISK": [120, 14, 5.2, 1.4, 0.4, 0.2, 0.2, 0.4, 1.4, 5.2, 14, 120]
			}
	},

	{ "rows": 12,
			"payout": {
					"LOW_RISK": [10, 3, 1.6, 1.4, 1.1, 1, 0.5, 1, 1.1, 1.4, 1.6, 3, 10],
					"MEDIUM_RISK": [33, 11, 4, 2, 1.1, 0.6, 0.3, 0.6, 1.1, 2, 4, 11, 33],
					"HIGH_RISK": [170, 24, 8.1, 2, 0.7, 0.2, 0.2, 0.2, 0.7, 2, 8.1, 24, 170]
			}
	},

	{ "rows": 13,
			"payout": {
					"LOW_RISK": [8.1, 4, 3, 1.9, 1.2, 0.9, 0.7, 0.7, 0.9, 1.2, 1.9, 3, 4, 8.1],
					"MEDIUM_RISK": [43, 13, 6, 3, 1.3, 0.7, 0.4, 0.4, 0.7, 1.3, 3, 6, 13, 43],
					"HIGH_RISK": [260, 37, 11, 4, 1, 0.2, 0.2, 0.2, 0.2, 1, 4, 11, 37, 260]
			}
	},

	{ "rows": 14,
			"payout": {
					"LOW_RISK": [7.1, 4, 1.9, 1.4, 1.3, 1.1, 1, 0.5, 1, 1.3, 1.1, 1.4, 1.9, 4, 7.1],
					"MEDIUM_RISK": [58, 15, 7, 4, 1.9, 1, 0.5, 0.2, 0.5, 1.9, 1, 4, 7, 15, 58],
					"HIGH_RISK": [420, 56, 18, 5, 1.9, 0.3, 0.2, 0.2, 0.2, 0.3, 1.9, 0.3, 5, 18, 56, 420]
			}
	},

	{ "rows": 15,
			"payout": {
					"LOW_RISK": [15, 8, 3, 2, 1.5, 1.1, 1, 0.7, 0.7, 1, 1.1, 1.5, 2, 3, 8, 15],
					"MEDIUM_RISK": [88, 18, 11, 5, 3, 1.3, 0.5, 0.3, 0.3, 0.5, 1.3, 3, 5, 11, 18, 88],
					"HIGH_RISK": [620, 83, 27, 8, 3, 0.5, 0.2, 0.2, 0.2, 0.5, 3, 3, 8, 27, 83, 620]
			}
	},

	{ "rows": 16,
			"payout": {
					"LOW_RISK": [16, 9, 2, 1.4, 1.4, 1.2, 1.1, 1, 0.5, 1, 1.1, 1.2, 1.4, 1.4, 2, 9, 16],
					"MEDIUM_RISK": [110, 41, 10, 5, 3, 1.5, 1, 0.5, 0.3, 0.5, 1, 1.5, 3, 5, 10, 41, 110],
					"HIGH_RISK": [1000, 130, 26, 9, 4, 2, 0.2, 0.2, 0.2, 0.2, 0.2, 2, 4, 9, 26, 130, 1000]
			}
	}
]`

// 游戏内部延迟执行时间
export const delayGameTime: number = 1500
// 游戏自动展示结果延迟时间行时间
export const delayResultTime: number = 1000
// 自动投注间隔时间
export const delayTimeInter: number = 2000
// 自动投注加速间隔时间
export const accelerateTimeInter: number = 400

// 游戏列表名称
export const titleKv: any = {
	plinko: 'Plinko',
	mines: 'Mines',
	limbo: 'Limbo',
	dice: 'Dice',
	keno: 'Keno',
	wheel: 'Wheel',
	diamonds: 'Diamonds'
}

// 行数据
export const rowsOptions = [
	{
		label: '8',
		value: 8
	},
	{
		label: '9',
		value: 9
	},
	{
		label: '10',
		value: 10
	},
	{
		label: '11',
		value: 11
	},
	{
		label: '12',
		value: 12
	},
	{
		label: '13',
		value: 13
	},
	{
		label: '14',
		value: 14
	},
	{
		label: '15',
		value: 15
	},
	{
		label: '16',
		value: 16
	}
]

// wheel段数据
export const rowsWheelOptions = [
	{
		label: '10',
		value: 10
	},
	{
		label: '20',
		value: 20
	},
	{
		label: '30',
		value: 30
	},
	{
		label: '40',
		value: 40
	},
	{
		label: '50',
		value: 50
	}
]
